﻿using System.Collections.Generic;
using BurzaConsole.Entities;

namespace BurzaConsole
{
    public class Program
    {
        public IEnumerable<Ticker> Tickers { get; private set; }

        private KurzovyListok KurzovyListok { get; set; }

        /// <summary>
        /// Application entry point
        /// </summary>
        static void Main()
        {
            var program = new Program
            {
                Tickers = FileLoader.LoadTickersFromFile()
            };

            var kurzovyListokCalculator =
                new KurzovyListokGenerator
                {
                    Tickers = program.Tickers,
                    StartTime = 1314432196,
                    EndTime = 1393153739,
                    IntervalSize = Utils.Hour,
                    Ema1Width = 7,
                    Ema2Width = 30
                };

            program.KurzovyListok = kurzovyListokCalculator.GenerateKurzovyListok();
        }
    }
}